package com.ruoyi.videos.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程视频对象 course_videos
 * 
 * @author ruoyi
 * @date 2025-03-03
 */
public class CourseVideos extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 视频id */
    private Long videoId;

    /** 课程id */
    @Excel(name = "课程id")
    private Long courseId;

    /** 视频标题 */
    @Excel(name = "视频标题")
    private String videoTitle;

    /** 视频url */
    @Excel(name = "视频url")
    private String videoUrl;

    /** 视频时长 */
    @Excel(name = "视频时长")
    private Long videoDuration;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 视频封面图Url */
    @Excel(name = "视频封面图Url")
    private String imgUrl;

    public void setVideoId(Long videoId) 
    {
        this.videoId = videoId;
    }

    public Long getVideoId() 
    {
        return videoId;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setVideoTitle(String videoTitle) 
    {
        this.videoTitle = videoTitle;
    }

    public String getVideoTitle() 
    {
        return videoTitle;
    }
    public void setVideoUrl(String videoUrl) 
    {
        this.videoUrl = videoUrl;
    }

    public String getVideoUrl() 
    {
        return videoUrl;
    }
    public void setVideoDuration(Long videoDuration) 
    {
        this.videoDuration = videoDuration;
    }

    public Long getVideoDuration() 
    {
        return videoDuration;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("videoId", getVideoId())
            .append("courseId", getCourseId())
            .append("videoTitle", getVideoTitle())
            .append("videoUrl", getVideoUrl())
            .append("videoDuration", getVideoDuration())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("imgUrl", getImgUrl())
            .toString();
    }
}
